import 'package:flutter/material.dart';
import 'package:lite_message/style/lm_icons.dart';

import 'package:lite_message/util/app_util.dart';

///logo
///* `sizeType` 尺寸类型
///* [1] 150.px
///* [2] 100.px
///* [3] 50.px
///* [4] 30.px
class Logo extends StatelessWidget {
  final int sizeType;

  final Color color;

  const Logo({Key key, this.sizeType = 0, this.color}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    ///尺寸列表
    final List<double> _sizeList = [
      300.px,
      200.px,
      160.px,
      50.px,
    ];

    return Hero(
      tag: 'logo',
      child: Icon(
        LmIcons.lm,
        size: _sizeList[sizeType],
        color: color ?? Theme.of(context).accentColor,
      ),
    );
  }
}
